/*
* Entourage
* Copyright 2011 INF532@Galatasaray University & Vincent Labatut 
* 
* This file is part of Entourage.
* 
* Entourage is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* 
* Entourage is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with Entourage. If not, see <http://www.gnu.org/licenses/>.
* 
*/

package com.appspot.entourage.common;

/**
 * This is the common class to describe link labels
 * as text and url fields.
 * @author Berk PELENK <bpelenk@beengames.com>
 * @version 1
 *
 */
public class NamedLink {
	private String url;
	private String text;
	
	/**
	 * Class constructor.
	 * @param url a full url of the text specified
	 * @param text text relied with the url
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public NamedLink(String url, String text)
	{
		this.url = url;
		this.text = text;
	}
	
	/**
	 * Get method for url
	 * @return url of the link label
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public String getUrl()
	{
		return url;
	}
	
	/**
	 * Get method for text
	 * @return text of the link label
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public String getText()
	{
		return text;
	}
	
	/**
	 * Set method for text
	 * @param text link label's text value
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public void setText(String text)
	{
		this.text = text;
	}
	
	/**
	 * Set method for text
	 * @param url link label's url value
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public void setURL(String url)
	{
		this.url = url;
	}
}
